.class Lcom/waiqin365/lightapp/im/contactlist/r;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    const/4 v3, 0x0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/c;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->c(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Lcom/waiqin365/lightapp/im/contactlist/a/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/g;->a()Ljava/util/ArrayList;

    move-result-object v4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->g(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    const-string/jumbo v1, "0"

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->p:Ljava/lang/String;

    move v2, v3

    :goto_0
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_0

    if-eqz v0, :cond_1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v4, v2, v0}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->g(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->c(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Lcom/waiqin365/lightapp/im/contactlist/a/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/g;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->h(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Lcom/waiqin365/lightwork/directory/b/t;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/b/t;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->k(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->k(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;->getBottom()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;->setSelection(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->g(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->i(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->j(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    const v3, 0x7f0805d3

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->g(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void

    :cond_1
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/r;->a:Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;->i(Lcom/waiqin365/lightapp/im/contactlist/GroupPickContactsListActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1
.end method
